package org.imlinker.login;

/**
 * 帐号信息的保存类，包括user,password,host,domain,port。
 * 
 * 这些在登录xmpp服务器过程中 所需要使用到的变量.
 */
public class Account extends Object {

	public Account() {
	}

	public Account(final String paraUser, final String paraPassword) {
		this.user = paraUser;
		this.password = paraPassword;
	}

	public Account(final String paraUser, final String paraPassword,
			final String paraHost, final String paraDomain,
			final String paraPort) {
		this.user = paraUser;
		this.password = paraPassword;
		this.host = paraHost;
		this.domain = paraDomain;
		this.port = paraPort;
	}

	public String getDomain() {
		return domain;
	}

	public String getHost() {
		return host;
	}

	public String getPassword() {
		return password;
	}

	public String getPort() {
		return port;
	}

	public String getUser() {
		return user;
	}

	public void setDomain(final String newDomain) {
		domain = newDomain;
	}

	public void setHost(final String newHost) {
		host = newHost;
	}

	public void setPassword(final String newPassword) {
		password = newPassword;
	}

	public void setPort(final String newPort) {
		port = newPort;
	}

	public void setUser(final String newUser) {
		user = newUser;
	}

	private String user;

	private String password;

	private String host;

	private String domain;

	private String port;

}
